package org.mags.dao.common;

public class EntityDefinition {
	private Class<?> entityClass;
	private EntityProperties entityProperties;
	private static final EntityProperties DEFAULT_ENTITY_PROPERTIES = new EntityProperties(null);
	
	public EntityProperties getEntityProperties() {
		if(entityProperties==null)
			entityProperties = DEFAULT_ENTITY_PROPERTIES;
		return entityProperties;
	}
	public void setEntityProperties(EntityProperties entityProperties) {
		this.entityProperties = entityProperties;
	}
	public EntityDefinition(Class<?> entityClass) {
		this.entityClass = entityClass;
	}
	public EntityDefinition(Class<?> entityClass, EntityProperties entityProperties) {
		this.entityClass = entityClass;
		this.entityProperties = entityProperties;
	}
	public Class<?> getEntityClass() {
		return entityClass;
	}
	public void setEntityClass(Class<?> entityClass) {
		this.entityClass = entityClass;
	}
}
